package com.hinner.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.hinner.entity.User;
import com.hinner.entity.vo.ModifyPasswordVO;
import com.hinner.entity.vo.QueryUserVO;
import com.hinner.entity.vo.UserVO;

public interface UserService extends IService<User> {
    User modify(UserVO userVO);


    void register(UserVO userVO);

    User login(UserVO userVO);


    // 忘记密码
    boolean forgotPassword(String username, String email);

    User findByUserNameAndEmail(String username, String email);

    PageInfo<User> findAllUsers(QueryUserVO query);

    String updateStatus(Integer userId, Integer isActived);

    Boolean modifyPassword(ModifyPasswordVO vo);
}
